Install Clam AntiVirus
2015/04/24 |
Install Clam AntiVirus to protect server from virus.
|
|
[1] | Install Clamav. |
root@dlp:~#
root@dlp:~# apt-get -y install clamav freshclam # update pattern files Downloading main.cvd [100%] main.cvd updated (version: 55, sigs: 2424225, f-level: 60, builder: neo) Downloading daily.cvd [100%] daily.cvd updated (version: 20370, sigs: 1377461, f-level: 63, builder: neo) Downloading bytecode.cvd [100%] bytecode.cvd updated (version: 250, sigs: 42, f-level: 63, builder: neo) Database updated (3801728 signatures) from db.local.clamav.net (IP: 203.212.42.128) |
[2] | Try to scan. |
root@dlp:~#
clamscan --infected --remove --recursive /home ----------- SCAN SUMMARY ----------- Known viruses: 3796142 Engine version: 0.98.6 Scanned directories: 4 Scanned files: 8 Infected files: 0 Data scanned: 0.00 MB Data read: 0.00 MB (ratio 0.00:1) Time: 11.857 sec (0 m 11 s) # download test virus
root@dlp:~#
root@dlp:~# wget http://www.eicar.org/download/eicar.com clamscan --infected --remove --recursive ./
./eicar.com: Eicar-Test-Signature FOUND
./eicar.com: Removed. # just detected ----------- SCAN SUMMARY ----------- Known viruses: 3796142 Engine version: 0.98.6 Scanned directories: 2 Scanned files: 7 Infected files: 1 Data scanned: 0.00 MB Data read: 0.01 MB (ratio 0.33:1) Time: 11.498 sec (0 m 11 s) |